\section{JSON in the program}

    To parse \textit{JSON} format, the program uses a library called \textit{json-lib}.\\
    
    That library enable to parse and create \textit{JSON} easily in \textit{Java}. When a \textit{JSON} data is parsed with \textit{json-lib}, it is converted to a \textit{JSONObject} which has the same structure as \textit{JSON} data.\\
    
    It is possible to access every attributes of the \textit{JSONObject} with methods like : getJSONObject(key) : where key is the key element in \textit{JSON}, getInt(key), getDouble(key), getBoolean(key), getLong(key), getString(key), getJSONArray(key) \ldots\\
    
    That library has also a class called \textit{JSONSerializer} which can convert a \textit{Java} object to a \textit{JSON} string just by calling the static method \verb?JSONSerialize.toJSON(Object)?.
    
    